package io.renren.modules.generator.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import io.renren.modules.sys.entity.SysUserEntity;
import lombok.Data;

/**
 * 商品评论表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2023-04-05 12:40:56
 */
@Data
@TableName("comment")
public class CommentEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 评论id
	 */
	@TableId
	private Long id;
	/**
	 * 用户id
	 */
	private Long userId;
	/**
	 * 商品id
	 */
	private String commodityId;
	/**
	 * 商品评论
	 */
	private String comment;
	/**
	 * 回复评论id
	 */
	private Long parentCommentId;
	/**
	 * 用户名
	 */
	@TableField(exist = false)
	private String username;

}
